<?php
/**
* A media browing and selection interface for use in conjuction with the
* "media-selector" populator widget and the TinyMCE file browser.
*
* @package Scribble
*/
$urlRoot = Buan\Config::get('ext.Scribble.urlRoot');
Buan\View::getGlobalView()->addStylesheets("{$urlRoot}/css/scribble/media-library/browser-widget.css");
Buan\View::getGlobalView()->addJavascripts("{$urlRoot}/js/scribble/media-library/browser-widget.js");
?>

<!-- Control panel -->
<div id="control-panel">
	<input type="hidden" id="config" value="<?php $this->html->e(json_encode($config)); ?>" />
	<input id="url" readonly="readonly" />
	<button id="backup">^</button>
	<div id="view-options">
		<button id="view-thumbnails" value="View as thumbnail"><span>View as thumbnails</span></button>
		<button id="view-list" value="View as list"><span>View as list</span></button> |
		<button id="btn-complete" value="OK"><span>OK</span></button>
	</div>
</div>

<!-- File navigation pane -->
<div id="view">
	<p>
		[t:Loading, please wait] ...
	</p>
</div>

<!-- Container for selected assets -->
<div id="selection"></div>